package com.example;

import com.example.controller.AIController;
import com.example.util.CryptUtil;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Auther: ${USER}
 * @Date: ${YEAR}/${MONTH}/${DAY}/${TIME}
 * @Description:
 */
public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        AIController aiController = context.getBean(AIController.class);
        //String answer = aiController.getAnswer("我帅吗？");
        String result = aiController.fortuneTelling(CryptUtil.AESencode("赵子龙"));
        //System.out.println(answer);
        System.out.println("返回值解密是:"+CryptUtil.AESdecode(result));
    }
}